package com.lagou.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 课程类
 * */
@Data
public class Course implements Serializable {

  //使用 JSONField 设置ordinal的值,来对转换成的JSON数据进行排序
  //课程ID
  @JSONField(ordinal = 1)
  private int id;

  //课程名称
  @JSONField(ordinal = 2)
  private String course_name;

  //课程介绍
  @JSONField(ordinal = 3)
  private String brief;

  //讲师名称
  @JSONField(ordinal = 4)
  private String teacher_name;

  //讲师介绍
  @JSONField(ordinal = 5)
  private String teacher_info;

  //课程原价
  @JSONField(ordinal = 6)
  private double price;

  //原价标签
  @JSONField(ordinal = 7)
  private String price_tag;

  //课程优惠价
  @JSONField(ordinal = 8)
  private double discounts;

  //课程概述
  @JSONField(ordinal = 9)
  private String preview_first_field;

  //课程概述第二个字段
  @JSONField(ordinal = 10)
  private String preview_second_field;

  //分享图片url
  @JSONField(ordinal = 11)
  private String course_img_url;

  //分享标题
  @JSONField(ordinal = 12)
  private String share_title;

  //分享描述
  @JSONField(ordinal = 13)
  private String share_description;

  //课程描述
  @JSONField(ordinal = 14)
  private String course_description;

  //排序
  @JSONField(ordinal = 15)
  private int sort_num;

  //课程状态,0-草稿,1-上架
  @JSONField(ordinal = 16)
  private int status;

  //创建时间
  @JSONField(ordinal = 17)
  private String create_time;

  //修改时间
  @JSONField(ordinal = 18)
  private String update_time;

  //是否删除
  @JSONField(ordinal = 19)
  private int isDel;

  @JSONField(ordinal = 20)
  private String share_image_title; //分享图title

  //添加list集合 泛型是 Course_Section
  List<Course_Section> sectionList = new ArrayList<>();

  //使用JSONField(serialize = false)排除不需要转换的字段

  @JSONField(serialize = false)
  private int total_course_time; //课时数

  @JSONField(serialize = false)
  private int sales; //显示销量

  @JSONField(serialize = false)
  private int actual_sales; //真实销量

  @JSONField(serialize = false)
  private int is_new; //是否新品

  @JSONField(serialize = false)
  private String is_new_des; //广告语

  @JSONField(serialize = false)
  private int last_operator_id; //最后操作者

  @JSONField(serialize = false)
  private int total_duration; //总时长

  @JSONField(serialize = false)
  private long course_type; //课程类型

  @JSONField(serialize = false)
  private String last_notice_time;  //最后课程最近通知时间

  @JSONField(serialize = false)
  private long is_gray; //是否是灰度课程

  @JSONField(serialize = false)
  private long grade; //级别

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getCourse_name() {
    return course_name;
  }

  public void setCourse_name(String course_name) {
    this.course_name = course_name;
  }

  public String getBrief() {
    return brief;
  }

  public void setBrief(String brief) {
    this.brief = brief;
  }

  public String getTeacher_name() {
    return teacher_name;
  }

  public void setTeacher_name(String teacher_name) {
    this.teacher_name = teacher_name;
  }

  public String getTeacher_info() {
    return teacher_info;
  }

  public void setTeacher_info(String teacher_info) {
    this.teacher_info = teacher_info;
  }

  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public String getPrice_tag() {
    return price_tag;
  }

  public void setPrice_tag(String price_tag) {
    this.price_tag = price_tag;
  }

  public double getDiscounts() {
    return discounts;
  }

  public void setDiscounts(double discounts) {
    this.discounts = discounts;
  }

  public String getPreview_first_field() {
    return preview_first_field;
  }

  public void setPreview_first_field(String preview_first_field) {
    this.preview_first_field = preview_first_field;
  }

  public String getPreview_second_field() {
    return preview_second_field;
  }

  public void setPreview_second_field(String preview_second_field) {
    this.preview_second_field = preview_second_field;
  }

  public String getCourse_img_url() {
    return course_img_url;
  }

  public void setCourse_img_url(String course_img_url) {
    this.course_img_url = course_img_url;
  }

  public String getShare_title() {
    return share_title;
  }

  public void setShare_title(String share_title) {
    this.share_title = share_title;
  }

  public String getShare_description() {
    return share_description;
  }

  public void setShare_description(String share_description) {
    this.share_description = share_description;
  }

  public String getCourse_description() {
    return course_description;
  }

  public void setCourse_description(String course_description) {
    this.course_description = course_description;
  }

  public int getSort_num() {
    return sort_num;
  }

  public void setSort_num(int sort_num) {
    this.sort_num = sort_num;
  }

  public int getStatus() {
    return status;
  }

  public void setStatus(int status) {
    this.status = status;
  }

  public String getCreate_time() {
    return create_time;
  }

  public void setCreate_time(String create_time) {
    this.create_time = create_time;
  }

  public String getUpdate_time() {
    return update_time;
  }

  public void setUpdate_time(String update_time) {
    this.update_time = update_time;
  }

  public int getIsDel() {
    return isDel;
  }

  public void setIsDel(int isDel) {
    this.isDel = isDel;
  }

  public String getShare_image_title() {
    return share_image_title;
  }

  public void setShare_image_title(String share_image_title) {
    this.share_image_title = share_image_title;
  }

  public List<Course_Section> getSectionList() {
    return sectionList;
  }

  public void setSectionList(List<Course_Section> sectionList) {
    this.sectionList = sectionList;
  }

  public int getTotal_course_time() {
    return total_course_time;
  }

  public void setTotal_course_time(int total_course_time) {
    this.total_course_time = total_course_time;
  }

  public int getSales() {
    return sales;
  }

  public void setSales(int sales) {
    this.sales = sales;
  }

  public int getActual_sales() {
    return actual_sales;
  }

  public void setActual_sales(int actual_sales) {
    this.actual_sales = actual_sales;
  }

  public int getIs_new() {
    return is_new;
  }

  public void setIs_new(int is_new) {
    this.is_new = is_new;
  }

  public String getIs_new_des() {
    return is_new_des;
  }

  public void setIs_new_des(String is_new_des) {
    this.is_new_des = is_new_des;
  }

  public int getLast_operator_id() {
    return last_operator_id;
  }

  public void setLast_operator_id(int last_operator_id) {
    this.last_operator_id = last_operator_id;
  }

  public int getTotal_duration() {
    return total_duration;
  }

  public void setTotal_duration(int total_duration) {
    this.total_duration = total_duration;
  }

  public long getCourse_type() {
    return course_type;
  }

  public void setCourse_type(long course_type) {
    this.course_type = course_type;
  }

  public String getLast_notice_time() {
    return last_notice_time;
  }

  public void setLast_notice_time(String last_notice_time) {
    this.last_notice_time = last_notice_time;
  }

  public long getIs_gray() {
    return is_gray;
  }

  public void setIs_gray(long is_gray) {
    this.is_gray = is_gray;
  }

  public long getGrade() {
    return grade;
  }

  public void setGrade(long grade) {
    this.grade = grade;
  }
}
